package com.glory.good_dark.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.good_dark.R;
import com.glory.good_dark.entity.CheckModelListEntity;

import java.util.List;

/**
 * FileName: CheckModelListAdapter
 * Author: XJH
 * Date: 2020/4/3 17:45
 * Description:
 * History:
 */
public class CheckModelListAdapter extends BaseQuickAdapter<CheckModelListEntity.CheckName, BaseViewHolder> {

    public CheckModelListAdapter(@Nullable List<CheckModelListEntity.CheckName> data) {
        super(R.layout.adapter_check_type,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CheckModelListEntity.CheckName item) {
        helper.setText(R.id.tvModel,item.getField_name());
    }
}
